package Control;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by lenovo on 2018/6/27.
 */
@Controller
@EnableAutoConfiguration
public class Contro {

    @Autowired
//    private

    @RequestMapping("/apple/dog")
    @ResponseBody
    public String abc(){
        return "hello";
    }
    @RequestMapping("/my/foot")
    @ResponseBody
    public String eat(){
        return "滿漢全席";
    }

}
